package com.ruoyi.system.api.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收藏记录对象 material_collect
 * 
 * @author ruoyi
 * @date 2023-12-04
 */
@Data
public class MaterialCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 资料ID */
    @Excel(name = "资料ID")
    private Long materialId;

    /** 购买用户ID */
    @Excel(name = "购买用户ID")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String username;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String userphone;

    private String appId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialId", getMaterialId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("userphone", getUserphone())
            .append("createTime", getCreateTime())
            .toString();
    }
}
